<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>注册</title>
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="black" name="apple-mobile-web-app-status-bar-style">
		<meta content="telephone=no" name="format-detection">
		<link rel="stylesheet" href="css/weui.css">
		<link rel="stylesheet" href="css/jquery-weui.css">
		<link rel="stylesheet" href="css/style.css">
		<style>
			#img {
				margin-left: -100px;
			}
		</style>
	</head>

	<body>
		<div class="overlay">
			<div class="overlay-content scrolling unlogin">
				<div class="unlogin-bg-wrapper"></div>
				<div class="unlogin-text">
					<div class="unlogin-text"> 注册 </div>
					<div class="weui-cells f15 unlogin-main">
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<input class="weui-input" type="tel" placeholder="手机号码" maxlength="11" id="mobile">
							</div>
						</div>
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<input class="weui-input" type="text" placeholder="验证码" maxlength="4" id="yzm" oninput="Yzm()" />
							</div>
							<img id="img" src="images/yzm.png" width="80" height="30" onclick="getYzm()" />
						</div>
						<div class="weui-cell vcode-wrapper">
							<div class="weui-cell__bd">
								<input class="weui-input" type="text" placeholder="短信验证码" maxlength="6" id="validateCode">
							</div>
							<div class="weui-cell__ft">
								<input class="weui-vcode-btn" onclick="setInviteCode(this)" value="验证码" readonly="readonly" style="width: 36px;" />
							</div>
						</div>
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<input class="weui-input" type="password" placeholder="登录密码" maxlength="18" id="password">
							</div>
						</div>
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<input class="weui-input" type="password" placeholder="确认登录密码" maxlength="18" id="repassword">
							</div>
						</div>
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<input class="weui-input" type="text" placeholder="推荐人信息 (非必填)" maxlength="11" id="inviteCode" oninput="getinviteUserNameByMobile()">
							</div>
							<div class="weui-cell__ft txr">
								<img src="images/icon4-1.png" id="info" width="27" height="27" alt="">
							</div>
						</div>
						<div class="weui-cell">
							<div class="weui-cell__bd" style="text-align:center;height:1em; color:#fff;" id="name">

							</div>
						</div>
					</div>
					<div class="unlogin-btn">
						<a href="#" class="weui-btn weui-btn_primary" onclick="Register()">注册</a>
					</div>
					<div class="foot">
						<a id="signIn">已有账号？立即登录</a>
					</div>
				</div>
			</div>

		</div>
		<script src="js/jquery.min.js"></script>
		<script src="js/jquery-weui.min.js"></script>
		<script src="js/mui.min.js"></script>
		<script src="controller/base.js"></script>
		<script src="js/require.min.js" data-main="controller/register.js"></script>
	</body>
	<script>
		document.getElementById('signIn').addEventListener('tap', function() {
			mui.openWindow({
				createNew:true,// 打开并且刷新：true刷新，false不刷新
				show:{
					autoShow:true,
					aniShow:'fade-in',
				},
				url: 'signIn.html',
				id: 'signIn'
			});
		});
	</script>
</html>